package com.qidian.tcba.admin.service.impl;

import com.qidian.tcba.admin.model.dto.parkLotSite.ParkLotSiteDTO;
import com.qidian.tcba.admin.model.entity.ParkLotSiteSurvey;
import com.qidian.tcba.admin.service.ParkLotSiteSurveyService;
import com.qidian.tcba.dao.ParkLotSiteSurveyMapper;
import com.qidian.tcba.utils.BeanMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 现场勘察情况表 服务实现类
 * </p>
 *
 * @author 冯永龙
 * @since 2021-07-06
 */
@Service
public class ParkLotSiteSurveyServiceImpl implements ParkLotSiteSurveyService {
    @Autowired
    private  ParkLotSiteSurveyMapper parkLotSiteSurveyMapper ;

    @Override
    public List<ParkLotSiteDTO> getParkLotAllSiteInfo() {
        List<ParkLotSiteSurvey> parkLotSiteSurveys = parkLotSiteSurveyMapper.selectAll();
        return BeanMapper.mapList(parkLotSiteSurveys, ParkLotSiteDTO.class);
    }
}
